package com.example.demo.Service.Impl;

import com.example.demo.Bean.*;
import com.example.demo.Mapper.ShopProductMapper;
import com.example.demo.Service.ShopProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopProductImpl implements ShopProductService {
    @Autowired
    private ShopProductMapper shopProductMapper;

    @Override
    public List<ShopProduct> getAllShopProduct(String name) {
        return shopProductMapper.getAllShopProduct(name);
    }

    @Override
    public int deleteShop(DeleteParameter deleteParameter) {
        return shopProductMapper.deleteShop(deleteParameter);
    }

    @Override
    public List<ShopOrders> getAllShopOrder(String shopname) {
        return shopProductMapper.getAllShopOrder(shopname);
    }

    @Override
    public int changeShopData(ChangeShopData changeShopData) {
        return shopProductMapper.changeShopData(changeShopData);
    }

    @Override
    public int insertCoupon(InsertCoupon insertCoupon) {
        return shopProductMapper.insertCoupon(insertCoupon);
    }

}
